package com.ruoyi.cderp.service;

import java.util.Date;
import java.util.List;
import com.ruoyi.cderp.domain.CustomerSettleCheckSheet;
import com.ruoyi.cderp.domain.CustomerSettleCheckSheetDetail;
import org.apache.ibatis.annotations.Param;

/**
 * 客户对账单Service接口
 *
 * @author ruoyi
 * @date 2025-03-11
 */
public interface ICustomerSettleCheckSheetService
{
    /**
     * 查询客户对账单
     *
     * @param id 客户对账单主键
     * @return 客户对账单
     */
    public CustomerSettleCheckSheet selectCustomerSettleCheckSheetById(String id);

    /**
     * 查询客户对账单列表
     *
     * @param customerSettleCheckSheet 客户对账单
     * @return 客户对账单集合
     */
    public List<CustomerSettleCheckSheet> selectCustomerSettleCheckSheetList(CustomerSettleCheckSheet customerSettleCheckSheet);

    /**
     * 新增客户对账单
     *
     * @param customerSettleCheckSheet 客户对账单
     * @return 结果
     */
    public int insertCustomerSettleCheckSheet(CustomerSettleCheckSheet customerSettleCheckSheet);

    /**
     * 修改客户对账单
     *
     * @param customerSettleCheckSheet 客户对账单
     * @return 结果
     */
    public int updateCustomerSettleCheckSheet(CustomerSettleCheckSheet customerSettleCheckSheet);

    /**
     * 批量删除客户对账单
     *
     * @param ids 需要删除的客户对账单主键集合
     * @return 结果
     */
    public int deleteCustomerSettleCheckSheetByIds(String[] ids);

    /**
     * 删除客户对账单信息
     *
     * @param id 客户对账单主键
     * @return 结果
     */
    public int deleteCustomerSettleCheckSheetById(String id);

    //新增时查询该客户的所有单据信息
    List<CustomerSettleCheckSheetDetail> selectFeeSheetCheckDetailList(@Param("startDate") Date startDate, @Param("endDate") Date endDate, @Param("customerId") String customerId);
}
